package com.linzt.candy.job.util;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

import com.linzt.candy.job.domain.SysJob;

/**
 * @Author: linzt
 * @Datetime: 2020/11/13 15:53
 * @Description: 定时任务处理（禁止并发执行）
 * @Version: 1.0
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception
    {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
